function getPromise() {
    // ECMA JS 规范
    return new Promise((resolve, reject) => {
        resolve('123');
        // reject('123');
    });
}

const pro = getPromise();
pro.then(
    (data) => {
        console.log({ data });
    },
    (error) => {
        console.log({ error });
    },
);
